package pojo;

public enum EDeviceState {
	FIXED, INPROGRESS, WAITING;

	public static String toDbFormat(EDeviceState state) {
		if (state.name().equalsIgnoreCase(WAITING.name())) {
			return "Waiting";
		} else if (state.name().equalsIgnoreCase(INPROGRESS.name())) {
			return "InProgress";
		} else
			return "Fixed";
	}
}
